import wx

class Frame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self, None, title='Map 1.0', size=(700, 528),
                          style=wx.CLOSE_BOX | wx.MINIMIZE_BOX)
        self.InitUI()
        #self.Centre()


    def InitUI(self):
        self.panel = wx.Panel(self)

        ##self.panel = SquarePanel(self)  
        #self.panel = DraggableSquarePanel(self) 
        
        # 设置布局  
        sizer = wx.BoxSizer(wx.VERTICAL)  
        sizer.Add(self.panel, 1, wx.EXPAND | wx.ALL, 5)  
        self.SetSizer(sizer)  
        # 显示窗口  
        self.Show()  


def main():
    app = wx.App()
    Frame().Show()
    app.MainLoop()

if __name__ == '__main__':
    main()

